package com.yg.user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 常用联系人表	
 * </p>
 *
 * @author 魏成龙
 * @since 2020-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yg_link_user")
public class LinkUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 对应用户表的主键
     */
    @TableField("userId")
    private Long userId;

    /**
     * 联系人姓名
     */
    private String name;

    /**
     * 身份证号
     */
    @TableField("idCard")
    private String idCard;

    /**
     * 证件类型(0:身份证 1:护照)
     */
    @TableField("cardType")
    private Integer cardType;

    /**
     * 创建时间
     */
    @TableField("createdTime")
    private LocalDateTime createdTime;

    /**
     * 修改时间
     */
    @TableField("updatedTime")
    private LocalDateTime updatedTime;


}
